package com.kmzx.one.project.entity;

import java.util.Date;

/**
 * @Project one
 * @Author: carol
 * @Date: 2020/9/3-10:34
 */
public class UserMessage {

    private String id;
    private String userId;
    private String fromUserId;
    private String fromUser;
    private String title;
    private Integer kinds;
    private Integer forwards;
    private Integer types;
    private String imgUrl;
    private String linkUrl;
    private String content;
    private Date createTime;
    private Date updateTime;
    private Integer reading;
    private Integer deleted;

    private String shadowInfo;

    public String getId() {
        return id;
    }

    public UserMessage setId(String id) {
        this.id = id;
        return this;
    }

    public String getUserId() {
        return userId;
    }

    public UserMessage setUserId(String userId) {
        this.userId = userId;
        return this;
    }

    public String getFromUser() {
        return fromUser;
    }

    public UserMessage setFromUser(String fromUser) {
        this.fromUser = fromUser;
        return this;
    }

    public String getTitle() {
        return title;
    }

    public UserMessage setTitle(String title) {
        this.title = title;
        return this;
    }

    public Integer getKinds() {
        return kinds;
    }

    /**
     * 种类(0,外部链接,1,小程序页)
     *
     * @param kinds
     * @return
     */
    public UserMessage setKinds(Integer kinds) {
        this.kinds = kinds;
        return this;
    }

    public Integer getForwards() {
        return forwards;
    }

    /**
     * 跳转不(0,不跳转,1跳转)
     *
     * @param forwards
     * @return
     */
    public UserMessage setForwards(Integer forwards) {
        this.forwards = forwards;
        return this;
    }

    public Integer getTypes() {
        return types;
    }

    /**
     * 消息类型(0,收益1,粉丝列表,)
     *
     * @param types
     * @return
     */
    public UserMessage setTypes(Integer types) {
        this.types = types;
        return this;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    /**
     * 图片地址
     *
     * @param imgUrl
     * @return
     */
    public UserMessage setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
        return this;
    }

    public String getLinkUrl() {
        return linkUrl;
    }

    /**
     * 跳转链接
     *
     * @param linkUrl
     * @return
     */
    public UserMessage setLinkUrl(String linkUrl) {
        this.linkUrl = linkUrl;
        return this;
    }

    public String getContent() {
        return content;
    }

    public UserMessage setContent(String content) {
        this.content = content;
        return this;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public UserMessage setCreateTime(Date createTime) {
        this.createTime = createTime;
        return this;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public UserMessage setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
        return this;
    }

    public Integer getReading() {
        return reading;
    }

    public UserMessage setReading(Integer reading) {
        this.reading = reading;
        return this;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public UserMessage setDeleted(Integer deleted) {
        this.deleted = deleted;
        return this;
    }

    public String getFromUserId() {
        return fromUserId;
    }

    public UserMessage setFromUserId(String fromUserId) {
        this.fromUserId = fromUserId;
        return this;
    }


    public String getShadowInfo() {
        return shadowInfo;
    }

    public UserMessage setShadowInfo(String shadowInfo) {
        this.shadowInfo = shadowInfo;
        return this;
    }

    public void cleanAllValue() {
        this.setId(null)
            .setFromUser(null)
            .setUserId(null)
            .setContent(null)
            .setTitle(null)
            .setImgUrl(null);
    }
}
